home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / glimpse-2.1 / compress / Makefile.solaris < prev    next >
Encoding:
Makefile  |  1995-05-16  |  2.1 KB  |  67 lines

  1. #/* Copyright (c) 1994 Burra Gopal, Udi Manber.  All Rights Reserved. */
  2. # Makefile for the compress library -- agrep should be linked with it in case
  3. # it wants to search for patterns in a compressed file.
  4.  
  5. # You might have to change these depending on your machine configuration.
  6. # AR and RABLIB are the library-archive programs. On Solaris, RANLIB is not
  7. # required (define it to true) and AR is in /usr/ccs/bin/ar (on our machine!).
  8. CC          = gcc -traditional    #cc
  9. AR          = /usr/ccs/bin/ar #for Solaris
  10. RANLIB          = true #for Solaris
  11.  
  12. SHELL = /bin/sh
  13.  
  14. # Define DIRENT to be 1 when you don't have <sys/dir.h> else define it to be 0.
  15. DIRENT = 1
  16.  
  17. # Define UTIME to be 1 if you have the utime() routine on your system. Else define it to be 0.
  18. UTIME = 1
  19.  
  20. # YOU DON'T HAVE TO CHANGE ANYTHING BELOW THIS LINE
  21.  
  22. INDEX = ../index
  23. AGREP = ../agrep
  24. LIBDIR = ../lib
  25. BIN = ../bin
  26.  
  27. all: lib tbuild cast uncast test
  28.     cp tbuild $(BIN)/.
  29.     cp cast $(BIN)/.
  30.     cp uncast $(BIN)/.
  31.  
  32. CFLAGS = -DDIRENT=$(DIRENT) -DUTIME=$(UTIME) -I$(INDEX) -I$(AGREP) -c -O #-g
  33.  
  34. LIBOBJ = hash.o string.o misc.o quick.o cast.o uncast.o tsimpletest.o tmemlook.o tbuild.o
  35. LIB = $(LIBDIR)/libcast.a
  36.  
  37. lib: $(LIBOBJ)
  38.     $(AR) rcv $(LIB) $(LIBOBJ)
  39.     $(RANLIB) $(LIB)
  40.  
  41. test: hash.o string.o misc.o test.o quick.o tsimpletest.o tmemlook.o cast.o uncast.o
  42.      $(CC) -o test hash.o string.o misc.o test.o quick.o tsimpletest.o tmemlook.o cast.o uncast.o
  43.  
  44. tbuild: hash.o string.o misc.o tbuild.o main_tbuild.o defs.h
  45.      $(CC) -o tbuild hash.o string.o misc.o tbuild.o main_tbuild.o
  46.  
  47. cast: main_cast.o $(LIB)
  48.      $(CC) -o cast main_cast.o $(LIBOBJ)
  49.  
  50. uncast: main_uncast.o $(LIB)
  51.     $(CC) -o uncast main_uncast.o $(LIBOBJ)
  52.  
  53. hash.o: defs.h $(INDEX)/glimpse.h
  54. string.o: defs.h $(INDEX)/glimpse.h
  55. misc.o: defs.h $(INDEX)/glimpse.h
  56. quick.o: defs.h $(INDEX)/glimpse.h
  57. cast.o: defs.h $(INDEX)/glimpse.h
  58. uncast.o: defs.h $(INDEX)/glimpse.h
  59. main_cast.o: defs.h $(INDEX)/glimpse.h
  60. main_uncast.o: defs.h $(INDEX)/glimpse.h
  61. tsimpletest.o: defs.h $(INDEX)/glimpse.h
  62. tmemlook.o: defs.h $(INDEX)/glimpse.h
  63. test.o : test.c
  64.  
  65. clean:
  66.     rm -f *.o $(LIB) core test cast uncast tbuild a.out
  67.